package com.sketch.service;

import com.sketch.commom.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;

/**
 * @author david
 **/
@Service
public class UserCollectService {

    @Autowired
    private RedisTemplate redisTemplate;

    public Result addOrRemove(Long id,Integer type){
        // 获取用户
        // TODO::
//        Integer count =  redisTemplate.opsForValue().setIfAbsent()
        return null;
    }
}
